		var DAO = new com.ajaxjs.DAO(jdbcConn);
//		var m = [];
//		m[0] = "INSERT INTO vod ( catalog, url, keywords, accessCount, playCount, content, name, createDate, updateDate ) VALUES ( 'catalog_{0}', 'http://58.248.254.9:9999/m2/9400/198/772/9400198772_lc.3gp', '上司，妻子，偷情，奸夫', 77, 8, '事发浙江，男子深夜撞见妻子与上司偷情，一怒之下提刀怒砍奸夫12刀！', '上司与妻子偷情男子怒砍奸夫', '2014-10-19 23:49:27', '2014-10-19 23:49:27' )";
//		m[1] = "INSERT INTO vod ( catalog, url, keywords, accessCount, playCount, content, name, createDate, updateDate ) VALUES ( 'catalog_{0}', 'http://58.248.254.9:9999/m2/9400/198/769/9400198769_cq.3gp', '宝宝，柠檬，超萌，皱眉', 6, 3, '宝宝是带来快乐的天使，初尝酸柠檬好酸，萌翻了！', '宝宝初尝酸柠檬超萌皱眉表情', '2014-10-19 23:53:56', '2014-10-19 23:53:56' )";
//		m[2] = "INSERT INTO vod ( catalog, url, keywords, accessCount, playCount, content, name, createDate, updateDate ) VALUES ( 'catalog_{0}', 'http://58.248.254.9:9999/m2/9400/198/764/9400198764_lc.3gp', '失恋，自虐', 68, 7, '近日在武汉街头，一名小伙因为和女友分手竟然用刀片割伤自己的手臂，还跪在地上将近6个小时。', '失恋男子自虐求复合被笑丢人', '2014-10-19 23:55:48', '2014-10-19 23:55:48' )";
//
//		// 假数据
//		for(var i = 0 ; i < 50; i++){
//			var index = Math.round((Math.random()*2)+1);
//			var mock_sql = m[index - 1].replace('{0}', Math.round((Math.random()*2)+1));
//			println( mock_sql);
//			DAO.executeUpdate(mock_sql);	
//		}
		// 图片
		for(var i = 1 ; i < 51; i++){
			
//			DAO.executeUpdate("INSERT INTO img ( fileName, belongsTo, parentId) VALUES ( 'http://imgu.3gtv.net:9090/i2/9400/198/764/9400198764_1_zhb.jpg', 'vod', " + i +")");	
		}		
		return DAO.executeUpdate(sql);	
		
		
		this.createTable = function(){
			var sql =
			'CREATE TABLE "main"."temp" ("id" INTEGER PRIMARY KEY  AUTOINCREMENT  NOT NULL , "name" VARCHAR, "ago" INTEGER)';
			
		}
		
		this.hasMany = function(entry, crud_overrides){
			if(!this.children)
				this.children = {};
			
			var parentTableName = this.getTableName();
			var selfFindList = this.findList;
			
			this.children[entry] = {
				findById : this.findById,
				findList : function(a, b){
					var where = ["belongsTo = '" + parentTableName + "'"];
					if(b){
						where.push(b);
					}
					return selfFindList.call(this, a, where);
				},
					//bf.Function_delegate.call(this.findList, null, null, ["belongsTo = '" + this.getTableName() + "'"]),
				getTableName : function(){
					return entry;
				},
				query 	   : this.query,
				queryCount : this.queryCount,
				delet: this.delet,
				create:function(){
					var fields = com.ajaxjs.Handler.getIntroSql(request, true);
					var values = com.ajaxjs.Handler.getIntroSql(request, false);
					var createSql = sql.format({
						tableName : this.getTableName(),
						columns : fields + ",belongsTo",
						values : values + ",'{0}'".format(parentTableName)
					});
					
					var DAO = new com.ajaxjs.DAO(jdbcConn);
					return DAO.executeUpdate(createSql);	
				},
				update:function(_entry, id){
					eval('var entry = new com.ajaxjs.Catalog(jdbcConn);');
					return entry.update(request, id);
				}
			};
			
			if(crud_overrides){
				for(var i in crud_overrides){
					this.children[entry][i] = crud_overrides[i];
				}
			}
		}